﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Admin.Master" AutoEventWireup="true" CodeBehind="userNew.aspx.cs" Inherits="GameAdmin.Pages.userNew" %>
<asp:Content ID="Content1" ContentPlaceHolderID="plcHolderContent" runat="server">
    <h2>Nový uživatel: </h2>

    <asp:Label ID="lblMessage" Visible="false" runat="server" />

    <div class="editor">
        <fieldset>
            <legend>Nastavení uživatele</legend>
            <asp:Label AssociatedControlID="txtLogin" Text="Login:" runat="server" /><asp:TextBox ID="txtLogin" runat="server" /><br />
            <asp:Label AssociatedControlID="txtName" Text="Jméno:" runat="server" /><asp:TextBox ID="txtName" runat="server" />
                <asp:RequiredFieldValidator ID="req2" ControlToValidate="txtName" ErrorMessage="Nevyplnili jste jméno!" Display="Dynamic" ValidationGroup="1" runat="server" />
                <br />
            <asp:Label AssociatedControlID="txtLastname" Text="Přijmení:" runat="server" /><asp:TextBox ID="txtLastname" runat="server" />
                <asp:RequiredFieldValidator ID="req3" ControlToValidate="txtLastname" ErrorMessage="Nevyplnili jste přijmení!" Display="Dynamic" ValidationGroup="1" runat="server" />
                <br />
            <asp:Label AssociatedControlID="txtEmail" Text="E-mail:" runat="server" /><asp:TextBox ID="txtEmail" runat="server" />
                <asp:RequiredFieldValidator ID="req4" ControlToValidate="txtEmail" ErrorMessage="Nevyplnili jste e-mail!" Display="Dynamic" ValidationGroup="1" runat="server" />
                <br />
            <asp:Label AssociatedControlID="txtPassword" Text="Heslo:" runat="server" /><asp:TextBox ID="txtPassword" TextMode="Password" runat="server" />
                <asp:RequiredFieldValidator ID="req5" ControlToValidate="txtPassword" ErrorMessage="Nevyplnili jste heslo!" Display="Dynamic" ValidationGroup="1" runat="server" />
                <br />
            <asp:Label AssociatedControlID="txtPassword2" Text="Heslo:" runat="server" /><asp:TextBox ID="txtPassword2" TextMode="Password" runat="server" />
                <asp:RequiredFieldValidator ID="req6" ControlToValidate="txtPassword2" ErrorMessage="Nevyplnili jste heslo!" Display="Dynamic" ValidationGroup="1" runat="server" />
                <asp:CompareValidator ID="comp1" ControlToValidate="txtPassword2" ControlToCompare="txtPassword" ErrorMessage="Heslo nejsou stejné!" Display="Dynamic" ValidationGroup="1" 
                runat="server"/><br />

            <asp:Label AssociatedControlID="chkBoxAdmin" Text="Admin:" runat="server" /><asp:CheckBox ID="chkBoxAdmin" runat="server" /><br />

            <asp:Button ID="btnSave" Text="Vložit uživatele" ValidationGroup="1" runat="server" />
        </fieldset>

        <hr />
    </div>

    <asp:HyperLink NavigateUrl="~/users" Text="Zpět na seznam uživatelů" runat="server" />
</asp:Content>